package modelo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries( { @NamedQuery(name = "AuditTrailBd.findAll", query = "select o from AuditTrailBd o") })
@Table(name = "\"audit_trail_bd\"")
public class AuditTrailBd implements Serializable {
    @Column(name = "accion")
    private String accion;
    @Column(name = "clientaddress")
    private String clientaddress;
    @Column(name = "cliente")
    private String cliente;
    @Column(name = "clientport")
    private String clientport;
    @Column(name = "fechahora")
    private String fechahora;
    @Id
    @Column(name = "id", nullable = false)
    private long id;
    @Column(name = "objeto")
    private String objeto;
    @Column(name = "sentenciasql")
    private String sentenciasql;
    @Column(name = "userbd")
    private String userbd;

    public AuditTrailBd() {
    }

    public AuditTrailBd(String accion, String clientaddress, String cliente, String clientport, String fechahora,
                        long id, String objeto, String sentenciasql, String userbd) {
        this.accion = accion;
        this.clientaddress = clientaddress;
        this.cliente = cliente;
        this.clientport = clientport;
        this.fechahora = fechahora;
        this.id = id;
        this.objeto = objeto;
        this.sentenciasql = sentenciasql;
        this.userbd = userbd;
    }

    public String getAccion() {
        return accion;
    }

    public void setAccion(String accion) {
        this.accion = accion;
    }

    public String getClientaddress() {
        return clientaddress;
    }

    public void setClientaddress(String clientaddress) {
        this.clientaddress = clientaddress;
    }

    public String getCliente() {
        return cliente;
    }

    public void setCliente(String cliente) {
        this.cliente = cliente;
    }

    public String getClientport() {
        return clientport;
    }

    public void setClientport(String clientport) {
        this.clientport = clientport;
    }

    public String getFechahora() {
        return fechahora;
    }

    public void setFechahora(String fechahora) {
        this.fechahora = fechahora;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getObjeto() {
        return objeto;
    }

    public void setObjeto(String objeto) {
        this.objeto = objeto;
    }

    public String getSentenciasql() {
        return sentenciasql;
    }

    public void setSentenciasql(String sentenciasql) {
        this.sentenciasql = sentenciasql;
    }

    public String getUserbd() {
        return userbd;
    }

    public void setUserbd(String userbd) {
        this.userbd = userbd;
    }
}
